package com.example.springbootmpdemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.springbootmpdemo.entity.Active;
import com.example.springbootmpdemo.mapper.ActiveMapper;
import com.example.springbootmpdemo.service.IActiveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author metasequoia
 * @since 2021-12-19
 */
@Service
public class ActiveServiceImpl extends ServiceImpl<ActiveMapper, Active> implements IActiveService {
    @Override
    public List findActiveByTeamid(int teamid) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("teamid",teamid);

        return list(wrapper);
    }
}
